HARPA.AI
LIBRARYAPIGUIDESAI COMMANDSBLOG

๐Ÿ”—ย ย LinkedIn Connection [NO MESSAGE]

Send a LinkedIn profile URL to connect with the target profile without a message. Works on English setup only. #linkedin #grid

Created by HARPA AI
Updated on Jan 31, 16:08
Installed 227 times
RUNS JS CODE

How to Use

IMPORT COMMAND

Content

- type: js
  args: selector
  code: |-
    const connectAndSend = async function() {
        // Find and click Connect button
        const connectButton = Array.from(document.querySelectorAll('button.artdeco-button--primary')).find(button => 
            button.querySelector('.artdeco-button__text')?.innerText.includes('Connect') &&
            button.offsetParent !== null &&
            window.getComputedStyle(button).display !== 'none' &&
            window.getComputedStyle(button).visibility !== 'hidden'
        );

        if (!connectButton) {
            return false;
        }

        connectButton.click();

        // Wait 1 second
        await new Promise(resolve => setTimeout(resolve, 1000));

        // Find and click Send button
        Array.from(document.querySelectorAll('button.artdeco-button--primary')).find(button => 
            button.querySelector('.artdeco-button__text')?.innerText.includes('Send without a note') &&
            button.offsetParent !== null &&
            window.getComputedStyle(button).display !== 'none' &&
            window.getComputedStyle(button).visibility !== 'hidden'
        )?.click();

        return true;
    };

    return connectAndSend();
  param: result
  timeout: 15000
  onFailure: ''
  silent: true
- type: say
  message: '{{result}}'
Contact us
HomeUse CasesGuidesPrivacy PolicyTerms of Service
CAN WE STORE COOKIES?
Our website uses cookies for the purposes of accessibility and security. They also allow us to gather statistics in order to improve the website for you. More info: Privacy Policy